package common;

import java.awt.Robot;

/**
 * 控制的基类
 * @author cccssw
 * 
 */
public class HandlerBase {

    private static Robot robot;

    public static Robot getRobot() {
        if (robot == null) {
            try {
                robot = new Robot();
            } catch (Exception ex) {
                System.out.println("Exception: " + ex.getMessage());
                return null;
            }
        }

        return robot;
    }
}
